package com.example.myac;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

@AutoConfiguration
@EnableConfigurationProperties(MyAcProperties.class)
public class MyAcConfiguration {

    @Autowired
    private MyAcProperties myAcProperties;

    @Bean
    public MyAcService MyAcConfiguration() {
        return new MyAcService(myAcProperties);
    }
}
